package com.yaodian100.ec.activity.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity
@Table(name = "EC_ACTIVITY_BLOCK_PRODUCT")
public class ActivityPageBlockProduct extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 流水號
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_activity_block_product")
	@SequenceGenerator(name = "seq_ec_activity_block_product", sequenceName = "SEQ_EC_ACTIVITY_BLOCK_PRODUCT")
	@Column(name = "ID")
	private Long id;
	
	@Column(name = "BLOCK_ID")
	private Long blockId;

	@Column(name = "PRODUCT_ID")
	private String productId;

	@Column(name = "PRODUCT_NAME")
	private String productName;

	@Column(name = "PROMOTE_NAME")
	private String promoteName;

	@Column(name = "LIST_PRICE")
	private BigDecimal listPrice;

	@Column(name = "SHELF_PRICE")
	private BigDecimal shelfPrice;
	
	/**
	 * 长形图/方形图(S:方形圖,R:長形圖)
	 */
	@Column(name = "PRODUCT_GRAPHIC_TYPE", length = 1)
	private String graphicType;
	
	@Transient
	private String imgPath;
	
	@Transient
	private String valid;
	
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	

	public Long getBlockId() {
		return blockId;
	}

	public void setBlockId(Long blockId) {
		this.blockId = blockId;
	}

	public String getProductId() {
		return this.productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getPromoteName() {
		return this.promoteName;
	}

	public void setPromoteName(String promoteName) {
		this.promoteName = promoteName;
	}

	public BigDecimal getListPrice() {
		return this.listPrice;
	}

	public void setListPrice(BigDecimal listPrice) {
		this.listPrice = listPrice;
	}

	public BigDecimal getShelfPrice() {
		return this.shelfPrice;
	}

	public void setShelfPrice(BigDecimal shelfPrice) {
		this.shelfPrice = shelfPrice;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public String getValid() {
		return valid;
	}

	public void setValid(String valid) {
		this.valid = valid;
	}

	public String getGraphicType() {
		return graphicType;
	}

	public void setGraphicType(String graphicType) {
		this.graphicType = graphicType;
	}

	

}
